import request from "../../../utils/request";
import { brandRespondData } from "./type"

//获取列表
export const brandList = (query: any) => {
    return request<brandRespondData>({
        url: "",
        method: "get",
        params: query,
    })
}
//新增数据
export const brandAddList = (data: any) => {
    return request<brandRespondData>({
        url: "",
        method: "POST",
        data,
    })
}
//删除数据
export const brandDeteleList = (id: any) => {
    return request<brandRespondData>({
        url: `/manage/TrainingResults/${id}`,
        method: "delete",
    })
}
//新增数据
export const reqAddOrUpdateAttr = (data: any) => {
    return request<brandRespondData>({
        url: "",
        method: "POST",
        data,
    })
}